﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Practices.Unity;
using System.ComponentModel;
using Skynet.BusinessEntities;

namespace Skynet.WebAdministracion.Views.ExamByCustomerMgm
{
    [System.ComponentModel.DataObject]
    public class ExamByCustomerMgmPresenter: Infrastructure.Web.Views.Master.MasterPresenter<IExamByCustomerMgmView>
    {

        [Dependency]
        public BusinessLogic.BusinessComponents.IBCExamQueries BCExamQueries { get; set; }

        public override void OnViewInitialized()
        {
            base.OnViewInitialized();
        }
        public override void OnViewLoaded()
        {
            base.OnViewLoaded();
        }
        [DataObjectMethod(DataObjectMethodType.Select, false)]
        public IEnumerable<ExamByCustomer> GetCategorias(Guid UserId)
        {
            return this.BCExamQueries.SearchExamByCustomer( BusinessLogic.BusinessComponents.ExamByCustomerSearchOptions.GetByCustomerId, UserId);
        }
    }
}
